/*
 * Copyright (C) 2022 Huawei Device Co., Ltd.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
/**
 * created on : 2012-07-19
 * author : yanguoyue
 */

#include "napi/native_api.h"
#include "../../comm/napi/util/napi_common.h"

#ifdef __cplusplus
extern "C" {
#endif

//JNIEXPORT void JNICALL Java_com_ohos_mars_BaseEvent_onCreate(JNIEnv* env, jclass)
napi_value JS_com_ohos_mars_BaseEvent_onCreate(napi_env env, napi_callback_info info);
//JNIEXPORT void JNICALL Java_com_ohos_mars_BaseEvent_onInitConfigBeforeOnCreate(JNIEnv* env, jclass, jint _packer_encoder_version)
napi_value JS_com_ohos_mars_BaseEvent_onInitConfigBeforeOnCreate(napi_env env, napi_callback_info info);
//JNIEXPORT void JNICALL Java_com_ohos_mars_BaseEvent_onDestroy(JNIEnv* env, jclass)
napi_value JS_com_ohos_mars_BaseEvent_onDestroy(napi_env env, napi_callback_info info);
//JNIEXPORT void JNICALL Java_com_ohos_mars_BaseEvent_onForeground (JNIEnv *, jclass, jboolean _isforeground) 
napi_value JS_com_ohos_mars_BaseEvent_onForeground(napi_env env, napi_callback_info info);
//JNIEXPORT void JNICALL Java_com_ohos_mars_BaseEvent_onNetworkChange (JNIEnv *, jclass) 
napi_value JS_com_ohos_mars_BaseEvent_onNetworkChange(napi_env env, napi_callback_info info);
//JNIEXPORT void JNICALL Java_com_ohos_mars_BaseEvent_onSingalCrash(JNIEnv *, jclass, jint _sig)
napi_value JS_com_ohos_mars_BaseEvent_onSingalCrash(napi_env env, napi_callback_info info);
//JNIEXPORT void JNICALL Java_com_ohos_mars_BaseEvent_onExceptionCrash(JNIEnv*, jclass)
napi_value JS_com_ohos_mars_BaseEvent_onExceptionCrash(napi_env env, napi_callback_info info);
//JNIEXPORT void JNICALL Java_com_ohos_mars_comm_Alarm_onAlarm(JNIEnv * env, jclass, jlong _id)
napi_value JS_com_ohos_mars_comm_Alarm_onAlarm(napi_env env, napi_callback_info info);

#ifdef __cplusplus
}
#endif